package com.bjpowernode.api.service;

import com.bjpowernode.api.model.User;
import com.bjpowernode.api.pojo.UserAccountInfoDto;

public interface UserService {
    //根据手机号查询数据
    User queryByPhone(String phone);

    /**
     * 用户注册
     * @param phone
     * @param password
     * @return
     */
    int userRegister(String phone, String password);

    /**
     * 用户登录
     * @param phone
     * @param pword
     * @return
     */
    User loginUser(String phone, String pword);

    /*实名认证*/
    boolean modifyRealName(String phone, String name, String idCard);

    /*获取用户和资金信息*/
    UserAccountInfoDto queryUserAllInfo(Integer uid);

    /*查询用户*/
    User queryById(Integer uid);
}
